{include file=member.header.html}

<div id="page-buyer-groupbuy">
	<div class="page-body buyer-groupbuy"> 
		<!--{foreach from=$groupbuy_list item=group name=_group_f}--> 
		<dl class="seller-info inclusive-box f66 clearfix">
			<dd class="clearfix">
				<label>{$lang.group_name} :</label><span>{$group.group_name|escape}</span></dd>
			<dd class="clearfix">
				<label>{$lang.state} :</label>
				<span>{$group.state|modifier:group_state}</span></dd>
			<dd class="clearfix">
				<label>{$lang.endtime} :</label>
				<span>{$group.end_time|date:Y-m-d}</span></dd>
			<dd class="clearfix">
				<label>{$lang.min_quantity} :</label>
				<span>{$group.min_quantity}</span></dd>
			<dd class="clearfix">
				<label>{$lang.quantity} :</label>
				<span>{$group.quantity}</span></dd>
			<dd class="clearfix">
				<label>{$lang.log} :</label>
				<span>{foreach from=$group.spec_quantity item=spec}
				{if $spec.qty gt 0}{if $spec.spec}{$spec.spec}{else}{$lang.default_spec}{/if}: {$spec.qty}{$lang.item}{/if}<br />
				{/foreach} </span> </dd>
		</dl>
		
		<div class="btn-box"> 
		{foreach from=$group.ican item=name}
			{if $name eq 'view'} <a target="_blank" href="{url app=groupbuy&id=$group.group_id}" style="display:none">{$lang.view}</a> 
			{elseif $name eq 'buy'} <a target="_blank" href="{url app=order&goods=groupbuy&group_id=$group.group_id}">{$lang.buy}</a> 
			{elseif $name eq 'view_order'} <a target="_blank" href="{url app=buyer_order&act=view&order_id=$group.order_id}">{$lang.view_order}</a> 
			{elseif $name eq 'exit_group'} <a href="javascript:drop_confirm('{$lang.exit_confirm}','{url app=buyer_groupbuy&act=exit_group&id=$group.group_id}')">{$lang.exit_group}</a> {/if}
		{/foreach}
		</div>
		<!--{foreachelse}-->
		<div class="notice-word mt10"><p>{$lang.no_records}</p></div>
		<!--{/foreach}--> 
	</div>
</div>

{include file=footer.html}